package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import java.math.BigDecimal;
import javax.validation.constraints.NotNull;

import static org.jsola.hr.example.SocCheckExample.E_ACCUMULATION_DIFFERENCE;
import static org.jsola.hr.example.SocCheckExample.E_CHECK_TYPE;
import static org.jsola.hr.example.SocCheckExample.E_COMPANY_ID;
import static org.jsola.hr.example.SocCheckExample.E_EMP_DIFFERENCE_NUM;
import static org.jsola.hr.example.SocCheckExample.E_FILE_NAME;
import static org.jsola.hr.example.SocCheckExample.E_FILE_URL;
import static org.jsola.hr.example.SocCheckExample.E_MONTH;
import static org.jsola.hr.example.SocCheckExample.E_PF_DIFFERENCE_AMOUNT;
import static org.jsola.hr.example.SocCheckExample.E_SERVICE_COST_DIFFERENCE;
import static org.jsola.hr.example.SocCheckExample.E_SOCIAL_DIFFERENCE;
import static org.jsola.hr.example.SocCheckExample.E_SOC_DIFFERENCE_AMOUNT;
import static org.jsola.hr.example.SocCheckExample.E_SOC_MONTH_ID;
import static org.jsola.hr.example.SocCheckExample.E_YEAR;
import static org.jsola.hr.example.SocCheckExample.M_COMPANY_ID_MAX;
import static org.jsola.hr.example.SocCheckExample.M_COMPANY_ID_NOT_NULL;
import static org.jsola.hr.example.SocCheckExample.M_FILE_NAME_MAX;
import static org.jsola.hr.example.SocCheckExample.M_FILE_URL_MAX;
import static org.jsola.hr.example.SocCheckExample.M_MONTH_MAX;
import static org.jsola.hr.example.SocCheckExample.M_SOC_MONTH_ID_MAX;
import static org.jsola.hr.example.SocCheckExample.M_SOC_MONTH_ID_NOT_NULL;
import static org.jsola.hr.example.SocCheckExample.M_YEAR_MAX;
import static org.jsola.hr.example.SocCheckExample.N_ACCUMULATION_DIFFERENCE;
import static org.jsola.hr.example.SocCheckExample.N_CHECK_TYPE;
import static org.jsola.hr.example.SocCheckExample.N_COMPANY_ID;
import static org.jsola.hr.example.SocCheckExample.N_EMP_DIFFERENCE_NUM;
import static org.jsola.hr.example.SocCheckExample.N_FILE_NAME;
import static org.jsola.hr.example.SocCheckExample.N_FILE_URL;
import static org.jsola.hr.example.SocCheckExample.N_MONTH;
import static org.jsola.hr.example.SocCheckExample.N_PF_DIFFERENCE_AMOUNT;
import static org.jsola.hr.example.SocCheckExample.N_SERVICE_COST_DIFFERENCE;
import static org.jsola.hr.example.SocCheckExample.N_SOCIAL_DIFFERENCE;
import static org.jsola.hr.example.SocCheckExample.N_SOC_DIFFERENCE_AMOUNT;
import static org.jsola.hr.example.SocCheckExample.N_SOC_MONTH_ID;
import static org.jsola.hr.example.SocCheckExample.N_YEAR;

/**
 * 社保校验表
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【社保校验表】的参数")
@Data
public class SocCheckAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiParam(value = N_SOC_MONTH_ID, example = E_SOC_MONTH_ID, required = true)
    @NotNull(message = M_SOC_MONTH_ID_NOT_NULL)
    @Length(max = 32, message = M_SOC_MONTH_ID_MAX)
    private String socMonthId;

    @ApiParam(value = N_FILE_URL, example = E_FILE_URL)
    @Length(max = 2147483647, message = M_FILE_URL_MAX)
    private String fileUrl;

    @ApiParam(value = N_EMP_DIFFERENCE_NUM, example = E_EMP_DIFFERENCE_NUM)
    @Length(max = 50, message = M_FILE_NAME_MAX)
    private String fileName;

    @ApiParam(value = N_EMP_DIFFERENCE_NUM, example = E_EMP_DIFFERENCE_NUM)
    private Integer empDifferenceNum;

    @ApiParam(value = N_SOC_DIFFERENCE_AMOUNT, example = E_SOC_DIFFERENCE_AMOUNT)
    private BigDecimal socDifferenceAmount;

    @ApiParam(value = N_PF_DIFFERENCE_AMOUNT, example = E_PF_DIFFERENCE_AMOUNT)
    private BigDecimal pfDifferenceAmount;

    @ApiParam(value = N_SERVICE_COST_DIFFERENCE, example = E_SERVICE_COST_DIFFERENCE)
    private BigDecimal serviceCostDifference;

    @ApiParam(value = N_SOCIAL_DIFFERENCE, example = E_SOCIAL_DIFFERENCE)
    private BigDecimal socialDifference;

    @ApiParam(value = N_ACCUMULATION_DIFFERENCE, example = E_ACCUMULATION_DIFFERENCE)
    private BigDecimal accumulationDifference;

    @ApiParam(value = N_COMPANY_ID, example = E_COMPANY_ID, required = true)
    @NotNull(message = M_COMPANY_ID_NOT_NULL)
    @Length(max = 32, message = M_COMPANY_ID_MAX)
    private String companyId;

    @ApiParam(value = N_YEAR, example = E_YEAR)
    @Length(max = 5, message = M_YEAR_MAX)
    private String year;

    @ApiParam(value = N_MONTH, example = E_MONTH)
    @Length(max = 5, message = M_MONTH_MAX)
    private String month;

    @ApiParam(value = N_CHECK_TYPE, example = E_CHECK_TYPE)
    private Integer checkType;


}

